package com.hgd.client.device;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for domain complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="domain">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="devices" type="{http://impl.hgd.com/}device" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="dmId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="dmIp" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="dmName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="interval" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="managementStation" type="{http://impl.hgd.com/}managementStation" minOccurs="0"/>
 *         &lt;element name="payLoad" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         &lt;element name="realtime" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="timeinterval" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "domain", propOrder = { "devices", "dmId", "dmIp", "dmName",
		"interval", "managementStation", "payLoad", "realtime", "timeinterval" })
public class Domain {

	@XmlElement(nillable = true)
	protected List<Device> devices;
	protected int dmId;
	protected String dmIp;
	protected String dmName;
	protected int interval;
	protected ManagementStation managementStation;
	protected long payLoad;
	protected int realtime;
	protected int timeinterval;

	/**
	 * Gets the value of the devices property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the devices property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getDevices().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link Device }
	 * 
	 * 
	 */
	public List<Device> getDevices() {
		if (devices == null) {
			devices = new ArrayList<Device>();
		}
		return this.devices;
	}

	/**
	 * Gets the value of the dmId property.
	 * 
	 */
	public int getDmId() {
		return dmId;
	}

	/**
	 * Sets the value of the dmId property.
	 * 
	 */
	public void setDmId(int value) {
		this.dmId = value;
	}

	/**
	 * Gets the value of the dmIp property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getDmIp() {
		return dmIp;
	}

	/**
	 * Sets the value of the dmIp property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setDmIp(String value) {
		this.dmIp = value;
	}

	/**
	 * Gets the value of the dmName property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getDmName() {
		return dmName;
	}

	/**
	 * Sets the value of the dmName property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setDmName(String value) {
		this.dmName = value;
	}

	/**
	 * Gets the value of the interval property.
	 * 
	 */
	public int getInterval() {
		return interval;
	}

	/**
	 * Sets the value of the interval property.
	 * 
	 */
	public void setInterval(int value) {
		this.interval = value;
	}

	/**
	 * Gets the value of the managementStation property.
	 * 
	 * @return possible object is {@link ManagementStation }
	 * 
	 */
	public ManagementStation getManagementStation() {
		return managementStation;
	}

	/**
	 * Sets the value of the managementStation property.
	 * 
	 * @param value
	 *            allowed object is {@link ManagementStation }
	 * 
	 */
	public void setManagementStation(ManagementStation value) {
		this.managementStation = value;
	}

	/**
	 * Gets the value of the payLoad property.
	 * 
	 */
	public long getPayLoad() {
		return payLoad;
	}

	/**
	 * Sets the value of the payLoad property.
	 * 
	 */
	public void setPayLoad(long value) {
		this.payLoad = value;
	}

	/**
	 * Gets the value of the realtime property.
	 * 
	 */
	public int getRealtime() {
		return realtime;
	}

	/**
	 * Sets the value of the realtime property.
	 * 
	 */
	public void setRealtime(int value) {
		this.realtime = value;
	}

	/**
	 * Gets the value of the timeinterval property.
	 * 
	 */
	public int getTimeinterval() {
		return timeinterval;
	}

	/**
	 * Sets the value of the timeinterval property.
	 * 
	 */
	public void setTimeinterval(int value) {
		this.timeinterval = value;
	}

}
